package com.bawei.module_launcher

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.google.android.material.bottomnavigation.BottomNavigationView


class FrameActivity : AppCompatActivity() {
    private lateinit var bottomView:BottomNavigationView
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.launcher_activity_frame)
        bottomView = findViewById(R.id.bottom_view)

        val hostFragment =  supportFragmentManager.findFragmentById(R.id.nav_host_fragment_container) as NavHostFragment
        val navController = hostFragment.navController

        bottomView.setupWithNavController(navController)


    }

    fun sendCode2(view: View) {}
}